package com.itetchologyandenglish.home.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//暂时不用
public class PicConfig implements WebMvcConfigurer {
        /*
         *addResourceHandler:访问映射路径
         *addResourceLocations:资源绝对路径
         */
        @Override
        public void addResourceHandlers(ResourceHandlerRegistry registry) {
            registry.addResourceHandler("/companyPic/**").addResourceLocations("C:\\lc_java_idea\\SSMBS\\target\\SSMBS\\WEB-INF\\static\\images\\410316.jpg");
        }


}
